<!DOCTYPE html>
<html lang="zh-CN">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>图书销售首页</title>
  <link rel="stylesheet" href="styles.css">
  <style>


    .head-x{
      width: 100%;
      height: 25px;
      background-color: gainsboro;
    }
    .head-x-css{
      display: inline-block;
      margin-right: 10%;
      float: right;

    }
    .breadcrumb a{
      color: #666666;
    }
    .breadcrumb a:hover{
      color: red;
    }

    body {
      font-family: Arial, sans-serif;
      margin: 0;
      padding: 0;
      background-color: #f4f4f4;
    }



    nav {
      background-color: #007bff;
      color: #fff;
      text-align: center;
      padding: 10px 0;
    }

    nav ul {
      list-style-type: none;
      margin: 0;
      padding: 0;
    }

    nav ul li {
      display: inline;
      margin-right: 20px;
    }

    nav a {
      color: #fff;
      text-decoration: none;
    }

    main {
      display: flex;
      justify-content: center;
      align-items: center;
      flex-wrap: wrap;
      padding: 20px;
    }

    .book {
      margin: 20px;
      padding: 10px;
      background-color: #fff;
      box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
      text-align: center;
      max-width: 300px;
    }

    .book img {
      max-width: 100%;
      height: auto;
    }

    .book h3 {
      margin: 10px 0;
      color: #333;
    }

    .book p {
      color: #666;
    }

    button {
      background-color: #007bff;
      color: #fff;
      padding: 5px 10px;
      border: none;
      cursor: pointer;
    }

    button:hover {
      background-color: #0056b3;
    }

    footer {
      background-color: #333;
      color: #fff;
      text-align: center;
      padding: 10px 0;
    }
  </style>
</head>
<body>
<div class="head-x ">
  <div class="head-x-css">
      <span class="breadcrumb" >
        <a id="login_state" href="#">您好，请登录</a>
        <a href="#">免费注册</a>
        <a href="#">帮助中心</a>
        <a href="#">客服</a>

      </span>

  </div>
</div>
<nav>
  <ul>
    <li><a href="#">首页</a></li>
    <li><a href="#">图书分类</a></li>
    <li><a href="#">热门图书</a></li>
    <li><a href="#">关于我们</a></li>
  </ul>
</nav>
<main>
  <section class="book">
    <img src="book1.jpg" alt="Book 1">
    <h3>图书标题</h3>
    <p>图书描述</p>
    <button>查看详情</button>
  </section>
  <section class="book">
    <img src="book2.jpg" alt="Book 2">
    <h3>图书标题</h3>
    <p>图书描述</p>
    <button>查看详情</button>
  </section>

</main>
<footer>
  <p>&copy; 2022 图书销售首页</p>
</footer>
</body>
</html>